/**
 *
 */
package com.zhuoyue.elmt.entity;

import com.eit.eitsite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 应急救援Entity
 * @author JiangYH
 * @version 2017-04-10
 */
public class WbEmergencyHelp extends DataEntity<WbEmergencyHelp> {
	
	private static final long serialVersionUID = 1L;
	private String helpMan;		// 求助人
	private String rescueMan;		// 救援人
	private String tzsbbh;		// 特种设备ID
	private String sbzcdm;		// 设备注册代码
	private Date helpDate;		// 求助时间
	private Date rescueDate;		// 救援时间
	private String remark;		// 备注
	private Date arriveDate;		// 到达时间
	private String hopeArriveDate;		// 期望到达时间
	private Date responseDate;		// 应答时间
	private String longitude;		// 经度
	private String latitude;		// 纬度
	private String helpPhone;		// 求助人电话
	private String rescuePhone;		// 救援人电话
	private String deviceAddr;		// 设备地点
	private String helpUnit;		// 求助人维保单位
	private String rescueUnit;		// 救援人维保单位
	private String status;		// 状态
	private String failureStatus;		// 故障类型
	private String helpManName;		// 求助人姓名
	private String rescueManName;		// 救援人姓名
	private String helpUnitName;		// 求助人维保单位名称
	private String rescueUnitName;		// 救援人维保单位名称
	private Date cancelDate; // 取消时间

	// 设备信息
	private String sydwmc; // 使用单位
	private String sbsydd; // 设备使用地点
	private String dwnbbh; // 单位内部编号

	private String pushType; // 推送消息类型 1发布 2接单

	public WbEmergencyHelp() {
		super();
	}

	public WbEmergencyHelp(String id){
		super(id);
	}

	@Length(min=1, max=100, message="求助人长度必须介于 1 和 100 之间")
	public String getHelpMan() {
		return helpMan;
	}

	public void setHelpMan(String helpMan) {
		this.helpMan = helpMan;
	}
	
	@Length(min=0, max=100, message="救援人长度必须介于 0 和 100 之间")
	public String getRescueMan() {
		return rescueMan;
	}

	public void setRescueMan(String rescueMan) {
		this.rescueMan = rescueMan;
	}
	
	@Length(min=1, max=100, message="特种设备ID长度必须介于 1 和 100 之间")
	public String getTzsbbh() {
		return tzsbbh;
	}

	public void setTzsbbh(String tzsbbh) {
		this.tzsbbh = tzsbbh;
	}
	
	@Length(min=1, max=100, message="设备注册代码长度必须介于 1 和 100 之间")
	public String getSbzcdm() {
		return sbzcdm;
	}

	public void setSbzcdm(String sbzcdm) {
		this.sbzcdm = sbzcdm;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="求助时间不能为空")
	public Date getHelpDate() {
		return helpDate;
	}

	public void setHelpDate(Date helpDate) {
		this.helpDate = helpDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRescueDate() {
		return rescueDate;
	}

	public void setRescueDate(Date rescueDate) {
		this.rescueDate = rescueDate;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getArriveDate() {
		return arriveDate;
	}

	public void setArriveDate(Date arriveDate) {
		this.arriveDate = arriveDate;
	}
	
	@Length(min=0, max=100, message="期望到达时间长度必须介于 0 和 100 之间")
	public String getHopeArriveDate() {
		return hopeArriveDate;
	}

	public void setHopeArriveDate(String hopeArriveDate) {
		this.hopeArriveDate = hopeArriveDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getResponseDate() {
		return responseDate;
	}

	public void setResponseDate(Date responseDate) {
		this.responseDate = responseDate;
	}
	
	@Length(min=0, max=100, message="经度长度必须介于 0 和 100 之间")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	
	@Length(min=0, max=100, message="纬度长度必须介于 0 和 100 之间")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	
	@Length(min=0, max=100, message="求助人电话长度必须介于 0 和 100 之间")
	public String getHelpPhone() {
		return helpPhone;
	}

	public void setHelpPhone(String helpPhone) {
		this.helpPhone = helpPhone;
	}
	
	@Length(min=0, max=100, message="救援人电话长度必须介于 0 和 100 之间")
	public String getRescuePhone() {
		return rescuePhone;
	}

	public void setRescuePhone(String rescuePhone) {
		this.rescuePhone = rescuePhone;
	}
	
	@Length(min=0, max=200, message="设备地点长度必须介于 0 和 200 之间")
	public String getDeviceAddr() {
		return deviceAddr;
	}

	public void setDeviceAddr(String deviceAddr) {
		this.deviceAddr = deviceAddr;
	}
	
	@Length(min=0, max=200, message="求助人维保单位长度必须介于 0 和 200 之间")
	public String getHelpUnit() {
		return helpUnit;
	}

	public void setHelpUnit(String helpUnit) {
		this.helpUnit = helpUnit;
	}
	
	@Length(min=0, max=100, message="救援人维保单位长度必须介于 0 和 100 之间")
	public String getRescueUnit() {
		return rescueUnit;
	}

	public void setRescueUnit(String rescueUnit) {
		this.rescueUnit = rescueUnit;
	}
	
	@Length(min=0, max=100, message="状态长度必须介于 0 和 100 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=100, message="故障类型长度必须介于 0 和 100 之间")
	public String getFailureStatus() {
		return failureStatus;
	}

	public void setFailureStatus(String failureStatus) {
		this.failureStatus = failureStatus;
	}
	
	@Length(min=0, max=100, message="求助人姓名长度必须介于 0 和 100 之间")
	public String getHelpManName() {
		return helpManName;
	}

	public void setHelpManName(String helpManName) {
		this.helpManName = helpManName;
	}
	
	@Length(min=0, max=100, message="救援人姓名长度必须介于 0 和 100 之间")
	public String getRescueManName() {
		return rescueManName;
	}

	public void setRescueManName(String rescueManName) {
		this.rescueManName = rescueManName;
	}
	
	@Length(min=0, max=200, message="求助人维保单位名称长度必须介于 0 和 200 之间")
	public String getHelpUnitName() {
		return helpUnitName;
	}

	public void setHelpUnitName(String helpUnitName) {
		this.helpUnitName = helpUnitName;
	}
	
	@Length(min=0, max=200, message="救援人维保单位名称长度必须介于 0 和 200 之间")
	public String getRescueUnitName() {
		return rescueUnitName;
	}

	public void setRescueUnitName(String rescueUnitName) {
		this.rescueUnitName = rescueUnitName;
	}

	public String getSydwmc() {
		return sydwmc;
	}

	public void setSydwmc(String sydwmc) {
		this.sydwmc = sydwmc;
	}

	public String getSbsydd() {
		return sbsydd;
	}

	public void setSbsydd(String sbsydd) {
		this.sbsydd = sbsydd;
	}

	public String getDwnbbh() {
		return dwnbbh;
	}

	public void setDwnbbh(String dwnbbh) {
		this.dwnbbh = dwnbbh;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCancelDate() {
		return cancelDate;
	}

	public void setCancelDate(Date cancelDate) {
		this.cancelDate = cancelDate;
	}

	public String getPushType() {
		return pushType;
	}

	public void setPushType(String pushType) {
		this.pushType = pushType;
	}
}